<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>{$title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="{$templateinfo.cssfile}" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$config.troopname} RSS Feed" href="rss.php" />
{if $script != ""}
<script type="text/javascript">
{eval var=$script}
</script>
{/if}
<script type="text/javascript" src="calendar/calendar.js"></script>
<script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="calendar/calendar-setup.js"></script>
{if $isedit == "adv"}
{literal}
<!-- tinyMCE -->
<script type="text/javascript" src="tiny_mce/tiny_mce_gzip.php"></script>
<script type="text/javascript">
	tinyMCE.init
    ({
        mode : "exact",
        elements: "story",
        theme : "advanced",
        plugins : "autosave,table,advhr,advimage,advlink,emotions,insertdatetime,preview,searchreplace,print,contextmenu,paste,directionality,fullscreen,inlinepopups,layer",
        theme_advanced_buttons1_add : "fontselect,fontsizeselect",
        theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
        theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
        theme_advanced_buttons3_add_before : "tablecontrols,separator",
        theme_advanced_buttons3_add : "emotions,advhr,separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolute",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_path_location : "bottom",
        plugin_insertdate_dateFormat : "%Y-%m-%d",
        plugin_insertdate_timeFormat : "%H:%M:%S",
        spellchecker_languages : "+English=en",
        extended_valid_elements : "a[name|href|target|title],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
        doctype : "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"  \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"	});
</script>
<!-- /tinyMCE -->
{/literal}
{elseif $isedit == "simp"}
{literal}
<!-- tinyMCE -->
<script type="text/javascript" src="tiny_mce/tiny_mce_gzip.php"></script>
<script type="text/javascript">
	tinyMCE.init({
		mode : "exact",
        elements: "story",
		theme : "advanced",
		plugins : "autosave,advimage,emotions,contextmenu,paste,inlinepopups",
        theme_advanced_buttons1 : "separator,cut,copy,paste,pastetext,pasteword,separator,bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,forecolor,backcolor",
        theme_advanced_buttons2 : "separator,bullist,numlist, separator,undo,redo,separator,link,unlink,image,separator,emotions,charmap,separator,cleanup,help,code,separator",
        theme_advanced_buttons3 : "fontselect,fontsizeselect", 
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
	    plugin_insertdate_dateFormat : "%Y-%m-%d",
	    plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "a[name|href|target|title],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
       doctype : "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"  \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
	});
</script>
<!-- /tinyMCE -->
{/literal}
{/if}
<script type="text/JavaScript" src="includes/functions.js"> </script>
{if $newpm}
{literal}
<script type="text/JavaScript">
 if (confirm("You have a new personal message, do you want to read it?"))
 {
    window.location= "index.php?page=pmmain";
 }
</script>
{/literal}
{/if}
</head>
<body>
